<?php
    $id				= gpc_getIntPost("id",$id);
	$listid 		= gpc_getStringArray("listid");
	$liststatus 	= gpc_getStringArray("liststatus");
	$listorder 		= gpc_getStringArray("listorder");

	$countlist = count($listid);

	for ($i = 0; $i < $countlist ; $i ++)
	{
		$sql_update = "UPDATE  tblsettourelm SET ";
		$sql_update.=" iStatus	 = '$liststatus[$i]'";
		$sql_update.=", iOrder  = '$listorder[$i]'";
		$sql_update.=" WHERE  iId = $listid[$i]";

		$dbsql->query($sql_update);
	}


	Insert_Tracking("Edit Status Program Tour");

	page_transfer("Update Status Success !",$pagetr);

	exit();

?>
